home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 500 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.0 KB

  1. Date: Fri, 17 Sep 93 11:32:27 +0200
  2. From: Robert.Wilhelm@physik.tu-muenchen.de
  3. Message-Id: <9309170932.AA28377@ss5.cip.physik.tu-muenchen.de>
  4. To: mint@terminator.rs.itd.umich.edu
  5. Subject: ml pl35: Bug in waitpid
  6.  
  7. Hi,
  8.  
  9. Mintlib PL35 will fail when being built with compilers other than gcc.
  10. I forget to sent entropy the following patch.
  11.  
  12. Sorry,
  13.  
  14.  Robert
  15.  
  16.  rwilhelm@physik.tu-muenchen.de
  17.  
  18. --------------------------------------------------------------------------- 
  19. *** waitpid.org    Fri Sep 17 09:44:52 1993
  20. --- waitpid.c    Fri Sep 17 11:16:34 1993
  21. *************** waitpid(pid, _status, options)
  22. *** 22,29 ****
  23.       long r;
  24.       int exit_status, sig_term;
  25.       union wait *statwait;
  26.       int *status = _status.__wi;
  27. !     
  28.       statwait = (union wait *) status;
  29.       if (__mint == 0) {
  30.           r = __waitval;
  31. --- 22,33 ----
  32.       long r;
  33.       int exit_status, sig_term;
  34.       union wait *statwait;
  35. + #ifdef __GNUC__
  36.       int *status = _status.__wi;
  37. ! #else
  38. !     int *status = _status;
  39. ! #endif    
  40.       statwait = (union wait *) status;
  41.       if (__mint == 0) {
  42.           r = __waitval;
  43.